<?php
	include_once("db/RepositoryExt.inc");
	include_once("db/AuditLogs.inc");
	
	$min = $_REQUEST["min"];
	$max = $_REQUEST["max"];
	
	AuditLogs::insertLog(User::getUser($_SESSION["uid"])->username, 'admin - unlock document by date range',
	'between '.$min.' and '.$max);
	RepositoryExt::unlockDateRange($min, $max);
	
	header("Location: .?action=viewUnlock");
?>